package com.jic.member.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.RuleConsume;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 积分消耗规则详情表
 * @author : 
 * @email : 
 * @since : 2020-01-15 08:28:40
 * @version : v1.0.0
 */
@Mapper
public interface  RuleConsumeMapper {

    long insert(RuleConsume ruleConsume);

    long delete(Long id);

    long deleteByRuleInfoId(Long ruleInfoId);

    long update(RuleConsume ruleConsume);

    long updateByRuleInfoId(@Param("ruleConsume") RuleConsume ruleConsume);

    RuleConsume queryByPrimaryKey(Long id);

    List<RuleConsume> query(RuleConsume ruleConsume);

    List<RuleConsume> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("ruleConsume") RuleConsume ruleConsume);

    long queryPageCount(RuleConsume ruleConsume);
}